#!/usr/bin/env bash

#在./test-01/test-02下，添加./test-01/test-02/333.txt，commit，push
#在./test-02下，pull，./test-02/333.txt必须存在！

cd ${PATH_NAME_01}/${DIR_NAME_02}
cp -f ${PATH_GIT_TEST}/333.txt 333.txt
git add 333.txt
git commit -m "add 333.txt"
#git push

cd ${PATH_NAME_01}
git subtree push --prefix=${DIR_NAME_02} ${PATH_NAME_02_ORIGIN} master

cd ${PATH_NAME_02}
git pull